import request from '@/utils/request'

// 文件上传接口
export const uploadFileServices = (file) => request.post('/admin/upload', file, {
    headers: {
        'Content-Type': 'multipart/form-data'
    }
})

// 大数据工具转成sql
export const addYearMonthAndToSqlServices = (path) => request.post('/admin/bidataExcel', { 'file_path': path })

// 读取excel 
export const readExcel = (path) => request.get('/admin/readExcel', { path })